﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSCV.Group8.BlogRollWebPart.Model;
using Microsoft.SharePoint;

namespace CSCV.Group8.BlogRollWebPart.Interface
{
    public interface IBRModel
    {
        /// <summary>
        /// List of URL
        /// </summary>
        List<String> ListURL { get; }

        /// <summary>
        /// Get lastest post form URL  list
        /// </summary>
        /// <param name="n">number of maximum posts can get</param>
        /// <returns>List BRPost</returns>
        List<BRPost> GetLastestNPost(int n);

        /// <summary>
        /// Set Model's url of blogpages
        /// </summary>
        /// <param name="urlList">List of Blogpage URL</param>
        void SetUrlList(List<String> urlList);

        /// <summary>
        /// Initialize
        /// </summary>
        /// <returns></returns>
        List<BRPost> Init();

        /// <summary>
        /// Add comment method
        /// </summary>
        /// <param name="commentContent">The body of the comment</param>
        /// <param name="commentTitle">The title of the comment</param>
        /// <param name="postID">The ID of post to be commenting</param>
        /// <param name="strspweburl">the web url of blog specific with this post</param>
        void AddComment(string commentContent,string commentTitle, int postID, string strspweburl);
    }
}
